package com.lin.server;

import com.lin.dataobject.Pharmacy;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Created by MYQ on 2017/10/28.
 */
public interface PharmacyService {
    Pharmacy findOne(String id);

    List<Pharmacy> findAll(String name, String startTime, String endTime);
    Page<Pharmacy> findAll(String name, String startTime, String endTime, Pageable pageable);


    Pharmacy save(Pharmacy pharmacy);

    void del(Pharmacy pharmacy);

    Long getSize(String name, String startTime, String endTime);

    List<Pharmacy> findAll();
}
